<!-- 奖惩情况 -->
<template>
  <div class="content">
    <el-card class="box-card">
      <div slot="header">
        <span style="color: rgb(14, 175, 14);">奖惩情况</span>
      </div>
      <div class="dataList">
        <div class="item" v-for="(itm, idx) in listData" :key="idx">
          <h4>{{ itm.porjectName }}</h4>
          <el-row>
            <el-col :span="12">
              <p>通报日期：{{ itm.date }}</p>
              <p>奖惩对象：{{ itm.object }}</p>
            </el-col>
            <el-col :span="12">
              <p>奖惩类型：{{ itm.type }}</p>
              <p>奖惩金额：{{ itm.money }}</p>
            </el-col>
          </el-row>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      listData: [
        {
          porjectName: '风光一体化防沙治沙',
          date: '2024-01-09',
          type: '奖励',
          object: '张XX',
          money: '500.00'
        },{
          porjectName: '三北六期',
          date: '2024-01-09',
          type: '奖励',
          object: '马XX',
          money: '500.00'
        },{
          porjectName: '蚂蚁森林',
          date: '2024-01-09',
          type: '奖励',
          object: '刘XX',
          money: '500.00'
        },{
          porjectName: '蓝旗机器人造林',
          date: '2024-01-09',
          type: '奖励',
          object: '王XX',
          money: '500.00'
        }
      ]
    }
  },
  mounted() {
    
  },
  methods: {
    
  }
}
</script>

<style lang="scss" scoped>
.dataList {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  height: 350px;
  overflow-y: auto;
  .item {
    width: 420px;
    height: 140px;
    border: 1px solid rgb(40, 219, 40);
    border-radius: 15px;
    background-color: rgb(225, 248, 225);
    h4 {
      margin-bottom: 20px;
      margin-left: 40px;
      font-size: 20px;
      font-weight: 500;
      position: relative;
      &:before{
        content: ' ';
        position: absolute;
        left: -25px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        border-radius: 10px;
        height: 16px;
        background-color:green;
      }
    }
    p {
      margin-top: 0;
      margin-bottom: 8px;
      margin-left: 40px;
      font-size: 14px;
    }
  }
}
</style>